package com.lh.facade;

public class DVDPlayer {
    //使用单例模式, 使用饿汉式
    private static DVDPlayer instance = new DVDPlayer();

    public static DVDPlayer getInstance() {
        return instance;
    }

    //dvd打开
    public void on() {
        System.out.println(" dvd on ");
    }

    //dvd关闭
    public void off() {
        System.out.println(" dvd off ");
    }

    //dvd开始
    public void play() {
        System.out.println(" dvd is playing ");
    }

    //dvd暂停
    public void pause() {
        System.out.println(" dvd pause ..");
    }

}
